/**
 * Created by 000188 on 2016/6/27.
 */
module.exports = {
    verify(r,v){
        if(!r.test(v)){
            return true
        }else{
            return false
        }
    },
    phone(value){
        return this.verify(/^1[3|4|5|7|8]\d{9}$/,value)
    },
    email(){
        return this.verify(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,value)
    }
}